package com.xinjie.controller;

import com.xinjie.pojo.User;
import javafx.scene.chart.ValueAxis;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller // 交给Spring
public class UserController {

    @ResponseBody // 不跳转页面
    @RequestMapping(value = "/user")
    public String user(User user) {
        System.out.println(user);
        return "success";
    }

}
